6006319520166ebf8d3ed907e9f3c8744db773ac,src/test/java/org/influxdb/InfluxDBTest.java,InfluxDBTest,testWrite,#,165
Before Change
this.influxDB.createDatabase(dbName);
BatchPoints batchPoints = BatchPoints
.database(dbName)
.time(System.currentTimeMillis(), TimeUnit.MILLISECONDS)
.tag("async", "true")
.retentionPolicy("default")
.build();
Point point1 = Point.measurement("cpu").field("idle", 90L).field("user", 9L).field("system", 1L).build();
After Change
String dbName = "write_unittest_" + System.currentTimeMillis();
this.influxDB.createDatabase(dbName);
BatchPoints batchPoints = BatchPoints.database(dbName).tag("async", "true").retentionPolicy("default").build();
Point point1 = Point.measurement("cpu").field("idle", 90L).field("user", 9L).field("system", 1L).build();
Point point2 = Point.measurement("disk").field("used", 80L).field("free", 1L).build();
batchPoints.point(point1);